//
//  UIView+Corner.h
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

IB_DESIGNABLE

@interface UIView (Corner)

@property (assign, nonatomic) IBInspectable CGFloat roundCornerRad;

@property (assign, nonatomic) IBInspectable CGFloat borderWidth;

@property (copy, nonatomic) IBInspectable UIColor *borderColor;


/**
 添加四角圆角

 @param radi 圆度
 */
- (void)roundingCornersRad:(CGFloat)radi;

// 添加圆角
- (void)roundingCorners:(UIRectCorner)rectCorner withCornerRadii:(CGSize)cornerRadii;
// 添加内切圆角
- (void)roundingInscribeCorners:(UIRectCorner)rectCorner withCornerRadii:(CGFloat)cornerRadii;

// 添加高斯模糊
- (void)addGaussFuzzyRect:(CGRect)rect withStyle:(UIBlurEffectStyle)blurEffectStyle;

// 移除高斯模糊
- (void)removeGaussFuzzy;

// 截图
- (UIImage *)screenshots;

//添加阴影
- (void)addShadwCorners:(UIRectEdge)rectEdg
              fillColor:(UIColor *)fillColor
            cornerRadii:(CGSize)cornerRadii;

@end

NS_ASSUME_NONNULL_END
